//  this library.
/// 上传集合数据
class UploadSaveModel {
  /// 做题数据
  int dc;

  /// 错题数量
  int ec;

  /// 收藏数量
  int cc;

  UploadSaveModel({
    required this.dc,
    required this.ec,
    required this.cc,
  });

  UploadSaveModel.fromJson(Map<String, dynamic> json)
      : dc = 0,
        ec = 0,
        cc = 0 {
    dc = json["dc"];
    ec = json["ec"];
    cc = json["cc"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data["dc"] = dc;
    data["ec"] = ec;
    data["cc"] = cc;
    return data;
  }
}
